• Description:
    This allows You to predefine Your own OPT keywords, currently are supported only single word keywords. Most of these definitions should be defined in 'dmodules:powerd/options.m' file. This file is supported from v0.09 it is always loaded before your source is compiled, so never do anything with this file, if You don't know what does it do!!! Between SETOPT and ENDOPT can be everything You like, like constant definitions, variable definitions, another OPTions, MODULEs, PROCedures etc. This allows You to use OPT DOSONLY instead of MODULE 'startup/startup_dos' and it is shorter, isn't it? :)

  • Syntax:
      SETOPT <name>
        <code>
      ENDOPT
    

    where <name> is the new option name and <code> is everything You like.

  • Example:
    This should defined be defined in dmodules:powerd/options.m file.
      SETOPT DODEBUG
        MODULE 'startup/startup_debug'
        OPT LINK='debug.lib'
        #define DODGB
      ENDOPT
    

    and if You use in your code:
      OPT DODEBUG
    

    the module 'startup/startup_debug' will be processed, debug.lib will be linked and DODBG macro will be created.